<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../layui-v2.8.0/css/layui.css" media="all">
    <script type="application/javascript" src="../../js/jquery-v3.6.3.min.js"></script>
    <script type="application/javascript" src="../../js/jquery.cookie.min.js"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/layui.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/modules/all.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/lay-config.js?v=2.0.0" charset="utf-8"></script>
    <script type="application/javascript" src="../../layui-v2.8.0/lay-module/eletree/eletree.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/index.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/common.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/header.js" charset="utf-8"></script>
    <script type="application/javascript" src="../../html-js/system/role.js" charset="utf-8"></script>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
                <form class="layui-form layui-form-pane" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">角色名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="roleName" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                        </div>
                    </div>
                </form>
            </div>
        </fieldset>

        <table class="layui-hide layui-table"  id="currentTableIdRoleList" lay-filter="currentTableFilter"></table>

        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="addRole"> 添加 </button>
                <button class="layui-btn layui-btn-warm layui-btn-sm data-update-btn" lay-event="editRole"> 修改 </button>
                <button class="layui-btn layui-btn-danger layui-btn-sm  data-delete-btn" lay-event="deleteRole"> 删除 </button>
            </div>
        </script>

        <script type="text/html" id="currentTableBar">
            <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="addResource">添加权限</a>
        </script>
    </div>
</div>
<div id="resource_tree" style="display: none;">

</div>

<form class="layui-form" id="role-update-add-from" action="" style="display: none;">
    <input type="text" id="roleId" style="display: none;">
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称</label>
        <div class="layui-input-block">
            <input type="text" name="roleNmae" id="roleNmae" required  lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否启用</label>
        <div class="layui-input-block">
            <select name="roleStatus" id="roleStatus"  >
                <option value="1" selected="">启用</option>
                <option value="2" selected="">禁用</option>
            </select>
        </div>
    </div>
</form>
</body>
</html>